package com.cn.lp.export.client.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 导出数据
 *
 * @author wuqirong
 * @date 2020-10-16
 * <p>
 * All rights Reserved, Designed www.xiao100.com
 */
public class ExportData {

    /** 排序 **/
    private int sort;

    /** 数据列表 **/
    private List<Map<String, Object>> dataList = new ArrayList<>();

    public static ExportData of(int sort, List<Map<String, Object>> dataList) {
        ExportData exportData = new ExportData();
        exportData.sort = sort;
        exportData.dataList.addAll(dataList);
        return exportData;
    }

    public List<Map<String, Object>> getDataList() {
        return dataList;
    }

    public int getSort() {
        return sort;
    }
}
